package arsw.twitter.common;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface IControllerRemote extends Remote {

	static public final String ControllerBindName = "TwitterServer";

	public void registrarUsuario(String name) throws RemoteException;
	
	public boolean esUsuarioRegistrado(String name) throws RemoteException; 
	
	public void publicar(String user, String message) throws RemoteException;

	public void seguir(String observerId, String subjectId) throws RemoteException;

	public void suspender(String observerId, String subjectId) throws RemoteException;

	public void darDeBajaUsuario(String name) throws RemoteException ;
	
	public Iterable<Mensaje> leerMensajes(String name) throws RemoteException ;
}